﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CPPEI.App.Console
{
    public class Command
    {
        public static void Register(string cmd, object executor)
        {
        }

        public static void Run()
        {
            string cmdString = System.Console.ReadLine();
            while (!Execute(cmdString))
            {
                cmdString = System.Console.ReadLine();
            }
        }

        private static bool Execute(string cmdString)
        {
            if (string.Equals(cmdString, "Exit", StringComparison.CurrentCultureIgnoreCase))
            {
                return true;
            } 
            return false;
        }
    }
}
